import requestLocal from '@/utils/requestLocal'

// 获取信息
export function getData(getname,key) {
  return requestLocal({
    url: '/prompt',
    method: 'post',
    data: {'collection_name':getname,'prompt':key},
  })
}

// 添加数据
export function addData(getname,data) {
  return requestLocal({
    url: '/collection/'+getname,
    method: 'post',
    data: data
  })
}

